<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <css file="__STATIC__/css/base.css"/>
            <link type="text/css" href="__STATIC__/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-1.8.0.min.js"></script>
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
            <js file="__PUBLIC__/js/field.js"/>
            <script type="text/javascript">
                $(function(){
                    $("#tabs").tabs();
                })
            </script>

    </head>
    <body style="padding:10px;">
        <div class="path">
            <strong>您现在的位置：</strong>
            <a href="__CONTROL__/index">字段管理</a> > 添加字段
        </div>
        <form action="__CONTROL__/field_add" method="post">
            <input type="hidden" name="mid" value="{$hd.get.mid}"/>
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-0">基本内容</a></li>
                </ul>
                <div id="tabs-0">   
                    <table class="table2">
                        <tr>
                            <th>字段名称：</th>
                            <td><input type="text" name="fname" style="width:260px;"/>
                                <span class="desc">必须输入英文</span></td>
                        </tr>
                        <tr>
                            <th>字段标题：</th>
                            <td><input type="text" name="title" style="width:380px;"/>
                                <span class="desc">说明标题(中文)</span>
                        </tr>
                        <tr>
                            <th>字段描述：</th>
                            <td><textarea name="description" style="width:460px; height:60px;"></textarea></td>
                        </tr>
                        <tr>
                            <th>主表字段：</th>
                            <td>
                                <input type="radio" name="tablename" value="{$model.ptable}" />是&nbsp;&nbsp;
                                <input type="radio" name="tablename" value="{$model.stable}" checked="checked"/>否 
                            </td>
                        </tr>
                        <tr>
                            <th>字段类型：</th>
                            <td>
                                <select name="type" id="type">
                                    <option value="">选择类型</option>
                                    <option value="text">单行文本</option>
                                    <option value="textarea">多行文本</option>
                                    <option value="radio">单选框</option>
                                    <option value="checkbox">复选框</option>
                                    <option value="editor">编辑器</option>
                                    <option value="int">数字</option>
                                    <!--                                    <option value="time">日期时间</option>-->
                                    <option value="upload">文件上传</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>详细设置：</th>
                            <td>
                                <div id="fieldset">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>正则验证规则：</th>
                            <td>
                                <input type="text" name="validate" style="width:460px;"/>
                                <span class="desc">验证规则正则表达式</span>
                            </td>
                        </tr>
                        <tr>
                            <th>启用：</th>
                            <td>
                                <input type="radio" name="state" value="1" checked="checked"/>是&nbsp;&nbsp;
                                <input type="radio" name="state" value="0" />否 
                            </td>
                        </tr>

                    </table>
                </div>

                <div style="padding-left:100px;">
                    <input type="submit" value="添加字段" class="submit"/>
                </div>
            </div>
        </form>
    </body>
</html>
